import {
  DashboardOutlined,
  SettingOutlined,
  UserOutlined,
} from '@ant-design/icons/lib/index';
import { ComponentType } from 'react';

interface RouteItem {
  path: string;
  label: string;
  key?: string;
  icon?: React.ComponentType;
  component?: string;
  children?: RouteItem[];
}
export type { RouteItem };
export const routes: RouteItem[] = [
  {
    path: '/',
    key:'/',
    label: '首页',
    icon: DashboardOutlined,
    // component: 'Dashboard',
  },
  {
    path: '/users',
    key:'/users',
    label: '用户管理',
    icon: UserOutlined,
    // component: 'Users',
  },
  {
    path: '/settings',
    key:'/settings',
    label: '设置',
    icon: SettingOutlined,
    // component: 'Settings',
    children: [
      {
        path: '/settings/profile',
        key:'/settings/profile',
        label: '个人信息',
        // component: 'Profile',
      },
    ],
  },
];
